public class Test {

    public static void main(String[] args) {
        MyArrayList myArrayList = new MyArrayList();
        myArrayList.add(1);
        myArrayList.add(2);
        myArrayList.add(3);
        myArrayList.add(4);
        myArrayList.add(5);
        myArrayList.add(2,7);
        myArrayList.add(6,8);
        myArrayList.add(0,9);
        myArrayList.set(0,1);
        //int pos = myArrayList.indexOf(7);

        myArrayList.display();

        myArrayList.remove(1);

        myArrayList.display();
        //System.out.println(pos);

     }
}
